package com.smartfactory.sail.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.smartfactory.sail.entity.StorageRecord;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 仓库流水 Mapper 接口
 * </p>
 *
 * @author 王巨壁
 * @since 2019-08-07
 */
@Mapper
public interface StorageRecordMapper extends BaseMapper<StorageRecord> {


    IPage<StorageRecord> selectCurrentAndWaitInForMateria(IPage<StorageRecord> page);

    IPage<StorageRecord> selectCurrentAndWaitInForProduct(IPage<StorageRecord> page);

    List<StorageRecord> getToOutWorkList(@Param("ew") Wrapper<StorageRecord> queryWrapper);
}
